{% extends 'base.html' %}
{% block content %}
  <section>
    <h2>运行脚本命令</h2>
    <form method="post">
      <label>命令:</label>
      <select name="cmd">
        <option value="gen-templates">gen-templates</option>
        <option value="gen-templates-by-rules">gen-templates-by-rules</option>
        <option value="verify">verify</option>
        <option value="apply">apply</option>
        <option value="setup-framework-mode">setup-framework-mode</option>
      </select>
      <label>参数:</label>
      <input type="text" name="args" placeholder="例如 --mode=mimic --langs=python" style="width:60%" />
      <button type="submit">执行</button>
    </form>
    {% if output %}
      <h3>输出</h3>
      <pre>{{ output }}</pre>
    {% endif %}
  </section>
{% endblock %}
